package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the DEPRE_DATAIL database table.
 * 
 */
@Entity
@Table(name="DEPRE_DATAIL")
@NamedQuery(name="DepreDatail.findAll", query="SELECT d FROM DepreDatail d")
public class DepreDatail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="PREDETAIL_ID")
	private long predetailId;

	@Column(name="PREDETAIL_COMP")
	private String predetailComp;

	@Column(name="PREDETAIL_MONEY")
	private BigDecimal predetailMoney;

	@Column(name="PREDETAIL_NAME")
	private String predetailName;

	@Column(name="PREDETAIL_NUM")
	private BigDecimal predetailNum;

	@Column(name="PREDETAIL_PRICE")
	private BigDecimal predetailPrice;

	//bi-directional many-to-one association to Depreciation
	@ManyToOne
	@JoinColumn(name="DEPRE_ID")
	private Depreciation depreciation;

	public DepreDatail() {
	}

	public long getPredetailId() {
		return this.predetailId;
	}

	public void setPredetailId(long predetailId) {
		this.predetailId = predetailId;
	}

	public String getPredetailComp() {
		return this.predetailComp;
	}

	public void setPredetailComp(String predetailComp) {
		this.predetailComp = predetailComp;
	}

	public BigDecimal getPredetailMoney() {
		return this.predetailMoney;
	}

	public void setPredetailMoney(BigDecimal predetailMoney) {
		this.predetailMoney = predetailMoney;
	}

	public String getPredetailName() {
		return this.predetailName;
	}

	public void setPredetailName(String predetailName) {
		this.predetailName = predetailName;
	}

	public BigDecimal getPredetailNum() {
		return this.predetailNum;
	}

	public void setPredetailNum(BigDecimal predetailNum) {
		this.predetailNum = predetailNum;
	}

	public BigDecimal getPredetailPrice() {
		return this.predetailPrice;
	}

	public void setPredetailPrice(BigDecimal predetailPrice) {
		this.predetailPrice = predetailPrice;
	}

	public Depreciation getDepreciation() {
		return this.depreciation;
	}

	public void setDepreciation(Depreciation depreciation) {
		this.depreciation = depreciation;
	}

}